package com.ucode.model.hrm.form;

import com.ucode.tool.validator.IDCard;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Schema(description = "人力资源管理系统 - 员工绑定Form")
@Data
@EqualsAndHashCode
@ToString(callSuper = true)
public class HrmEmployeeBindForm {

    /**
     * 真实姓名
     */
    @Schema(description = "真实姓名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "真实姓名不能为空")
    @Size(max = 50, message = "真实姓名不能超过 50 个字符")
    private String realName;

    /**
     * 身份证号
     */
    @Schema(description = "身份证号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "身份证号不能为空")
    @IDCard
    @Size(max = 50, message = "身份证号不能超过 50 个字符")
    private String idCardNumber;


}
